package com.guanghua.brick.security;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

public interface IPermission {
	
	public boolean functionPermissionValid(String function, HttpServletRequest request);
	
	public boolean functionPermissionValid(String function, IAuthenticated user);
	
	public String contentPermissionFilter(String function, HttpServletRequest request, String propertyName);
	
	public String contentPermissionFilter(String function, IAuthenticated user, String propertyName);
	
	public List contentPermissionFilter(String function, HttpServletRequest request);
	
	public List contentPermissionFilter(String function, IAuthenticated user);
	
	public String getFunctionName(String functionId);
	
}
